package com.dianxin.smartpark.service.access;

import com.chinatelecom.response.common.CommonResponseBody;
import com.dianxin.smartpark.dao.qo.access.SmartParkAccessControlPassRecordQO;
import com.dianxin.smartpark.service.validation.Save;
import com.dianxin.smartpark.service.vo.access.SmartParkAccessControlPassRecordVO;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;
import java.util.List;

/**
 * 门禁
 * @author mac
 */
@Validated
public interface SmartParkAccessControlPassRecordService {

    /**
     * 门禁记录保存
     * @param vo 门禁记录vo
     * @return
     */
    @Validated(Save.class)
    CommonResponseBody<Boolean> savePassRecord(@Valid SmartParkAccessControlPassRecordVO vo);


    /**
     * 分页查询
     * @param qo
     * @return
     */
    CommonResponseBody<List<SmartParkAccessControlPassRecordVO>> getPassRecords(SmartParkAccessControlPassRecordQO qo);
}
